/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.hiran.midlet;

import java.io.IOException;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;

/**
 *
 * @author Hiran
 */
public class PuzzleImageCanvas extends Canvas{

    String image_name = "/PromoCode.jpg";
    Image img;
    public PuzzleImageCanvas() {
	try {
            img = Image.createImage(image_name);
        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }


    protected void paint(Graphics g) {
	//g.drawString("ABC", 0, 0, UP);
	g.drawImage(img, 0, 0, g.TOP | g.LEFT);
    }
}
